home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
REmovido
/
Esportes
/
LightningBreak.swf
/
scripts
/
frame_1
/
DoAction_6.as
< prev
next >
Wrap
Text File
|
2006-06-13
|
9KB
|
139 lines
itemsPerPage = 5;
ballsAmount = 8;
spotVariance = 0.01;
scoreThreshold = 1500;
tables = new Array();
table = new Object();
table.flex = 0.9;
table.friction = 0.978;
table.x0 = 23.3;
table.x1 = 616.7;
table.y0 = 23.3;
table.y1 = 320.2;
table.cornerHoleSize = !cornerHoleSize ? 68 : cornerHoleSize;
table.centerHoleSize = !centerHoleSize ? 60 : centerHoleSize;
table.height = _height - 40;
table.hwalls = new Array();
table.hwalls[0] = {x0:table.x0 + table.cornerHoleSize / 2,x1:table.x0 + (table.x1 - table.x0) / 2 - table.centerHoleSize / 2,y0:table.y0,y1:table.y0,dir:1};
table.hwalls[1] = {x0:table.x0 + (table.x1 - table.x0) / 2 + table.centerHoleSize / 2,x1:table.x1 - table.cornerHoleSize / 2,y0:table.y0,y1:table.y0,dir:1};
table.hwalls[2] = {x0:table.x0 + table.cornerHoleSize / 2,x1:table.x0 + (table.x1 - table.x0) / 2 - table.centerHoleSize / 2,y0:table.y1,y1:table.y1,dir:-1};
table.hwalls[3] = {x0:table.x0 + (table.x1 - table.x0) / 2 + table.centerHoleSize / 2,x1:table.x1 - table.cornerHoleSize / 2,y0:table.y1,y1:table.y1,dir:-1};
table.vwalls = new Array();
table.vwalls[0] = {x0:table.x0,x1:table.x0,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1 - table.cornerHoleSize / 2,dir:1};
table.vwalls[1] = {x0:table.x1,x1:table.x1,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1 - table.cornerHoleSize / 2,dir:-1};
table.holes = new Array();
table.holes[0] = {x:17,y:17,radius:40.4};
table.holes[1] = {x:320,y:-14,radius:47.4};
table.holes[2] = {x:640 - table.holes[0].x,y:table.holes[0].y,radius:table.holes[0].radius};
table.holes[3] = {x:table.holes[0].x,y:1 * table.hwalls[2].y0 - (table.holes[0].y - table.hwalls[0].y0),radius:table.holes[0].radius};
table.holes[4] = {x:table.holes[1].x,y:1 * table.hwalls[2].y0 - (table.holes[1].y - table.hwalls[0].y0),radius:table.holes[1].radius};
table.holes[5] = {x:table.holes[2].x,y:1 * table.hwalls[2].y0 - (table.holes[2].y - table.hwalls[0].y0),radius:table.holes[2].radius};
tables[0] = table;
lidPoints = new Array();
lidPoints[0] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[0].x0 * 0.5 + 5,y:table.vwalls[0].y0 * 0.5 + table.hwalls[0].y0 * 0.5 - 5};
lidPoints[1] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 - 10,y:table.y0 + 5};
lidPoints[2] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[1].x1 * 0.5 - 5,y:table.vwalls[1].y0 * 0.5 + table.hwalls[1].y0 * 0.5 - 5};
lidPoints[3] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[2].x0 * 0.5 + 5,y:table.vwalls[0].y1 * 0.5 + table.hwalls[2].y0 * 0.5 + 5};
lidPoints[4] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 - 10,y:table.y1 - 5};
lidPoints[5] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[3].x1 * 0.5 - 5,y:table.vwalls[1].y1 * 0.5 + table.hwalls[3].y0 * 0.5 + 5};
lidPoints2 = new Array();
lidPoints2[0] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[0].x0 * 0.5 - 5,y:table.vwalls[0].y0 * 0.5 + table.hwalls[0].y0 * 0.5 + 5};
lidPoints2[1] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 + 10,y:table.y0 + 5};
lidPoints2[2] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[1].x1 * 0.5 + 5,y:table.vwalls[1].y0 * 0.5 + table.hwalls[1].y0 * 0.5 + 5};
lidPoints2[3] = {x:table.vwalls[0].x0 * 0.5 + table.hwalls[2].x0 * 0.5 - 5,y:table.vwalls[0].y1 * 0.5 + table.hwalls[2].y0 * 0.5 - 5};
lidPoints2[4] = {x:table.hwalls[0].x1 * 0.5 + table.hwalls[1].x0 * 0.5 + 10,y:table.y1 - 5};
lidPoints2[5] = {x:table.vwalls[1].x0 * 0.5 + table.hwalls[3].x1 * 0.5 + 5,y:table.vwalls[1].y1 * 0.5 + table.hwalls[3].y0 * 0.5 - 5};
table = new Object();
table.flex = tables[0].flex;
table.friction = tables[0].friction;
table.x0 = tables[0].x0;
table.x1 = tables[0].x1;
table.y0 = tables[0].y0;
table.y1 = tables[0].y1;
table.cornerHoleSize = tables[0].cornerHoleSize;
table.centerHoleSize = tables[0].centerHoleSize;
table.height = tables[0].height;
table.hwalls = new Array();
table.hwalls[0] = {x0:table.x0,x1:table.x1,y0:table.y0,y1:table.y0,dir:1};
table.hwalls[1] = {x0:-100,x1:-101,y0:-100,y1:-101,dir:1};
table.hwalls[2] = tables[0].hwalls[2];
table.hwalls[3] = tables[0].hwalls[3];
table.vwalls = new Array();
table.vwalls[0] = {x0:table.x0,x1:table.x0,y0:table.y0,y1:table.y1 - table.cornerHoleSize / 2,dir:1};
table.vwalls[1] = {x0:table.x1,x1:table.x1,y0:table.y0,y1:table.y1 - table.cornerHoleSize / 2,dir:-1};
table.holes = new Array();
table.holes[0] = {x:-100,y:-100,radius:1};
table.holes[1] = {x:-100,y:-100,radius:1};
table.holes[2] = {x:-100,y:-100,radius:1};
table.holes[3] = tables[0].holes[3];
table.holes[4] = tables[0].holes[4];
table.holes[5] = tables[0].holes[5];
tables[1] = table;
table = new Object();
table.flex = tables[0].flex;
table.friction = tables[0].friction;
table.x0 = tables[0].x0;
table.x1 = tables[0].x1;
table.y0 = tables[0].y0;
table.y1 = tables[0].y1;
table.cornerHoleSize = tables[0].cornerHoleSize;
table.centerHoleSize = tables[0].centerHoleSize;
table.height = tables[0].height;
table.hwalls = new Array();
table.hwalls[2] = {x0:table.x0,x1:table.x1,y0:table.y1,y1:table.y1,dir:-1};
table.hwalls[3] = {x0:-100,x1:-101,y0:-100,y1:-101,dir:-1};
table.hwalls[0] = tables[0].hwalls[0];
table.hwalls[1] = tables[0].hwalls[1];
table.vwalls = new Array();
table.vwalls[0] = {x0:table.x0,x1:table.x0,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1,dir:1};
table.vwalls[1] = {x0:table.x1,x1:table.x1,y0:table.y0 + table.cornerHoleSize / 2,y1:table.y1,dir:-1};
table.holes = new Array();
table.holes[0] = tables[0].holes[0];
table.holes[1] = tables[0].holes[1];
table.holes[2] = tables[0].holes[2];
table.holes[3] = {x:-100,y:-100,radius:1};
table.holes[4] = {x:-100,y:-100,radius:1};
table.holes[5] = {x:-100,y:-100,radius:1};
tables[2] = table;
aimDistance = 3;
aimRange = 50;
ballSize = 24;
this.steps = -1;
replayDataSlots = new Array();
_root.replayDataSlots[1] = new Array();
_root.replayDataSlots[1][0] = {x:203,y:169.95,vx:28.2282346046794,vy:0};
_root.replayDataSlots[1][1] = {x:388.95,y:169.95,vx:0,vy:0};
_root.replayDataSlots[1][2] = {x:416.95,y:153.95,vx:0,vy:0};
_root.replayDataSlots[1][3] = {x:416.95,y:184.95,vx:0,vy:0};
_root.replayDataSlots[1][4] = {x:444.95,y:168.95,vx:0,vy:0};
_root.replayDataSlots[1][5] = {x:475.95,y:169.95,vx:0,vy:0};
_root.replayDataSlots[1][6] = {x:509.95,y:169.95,vx:0,vy:0};
_root.replayDataSlots[1][7] = {x:542.95,y:169.95,vx:0,vy:0};
_root.replayDataSlots[2] = new Array();
_root.replayDataSlots[2][0] = {x:435.53254579983,y:282.529219395612,vx:-10.8018815036205,vy:-3.88055991123523};
_root.replayDataSlots[2][1] = {x:181.309250796516,y:498.750719159373,vx:-2.52374030597811e-18,vy:2.8650554134667e-18};
_root.replayDataSlots[2][2] = {x:444.996423706607,y:332.92118806533,vx:3.70632672696534e-10,vy:6.40451012190524e-10};
_root.replayDataSlots[2][3] = {x:103.959243218691,y:125.979241226676,vx:-0.168341140386019,vy:-0.0825094140402536};
_root.replayDataSlots[2][4] = {x:322.386221548055,y:59.8600270768538,vx:-4.46027017527593e-7,vy:-3.00509085586092e-8};
_root.replayDataSlots[2][5] = {x:287.831056269539,y:304.066637712036,vx:0.0000137588566724853,vy:-0.0000216042838801739};
_root.replayDataSlots[2][6] = {x:389.942879410448,y:325.320767727873,vx:-1.42404514264455e-20,vy:-1.3386968667468e-20};
_root.replayDataSlots[2][7] = {x:477.159829529633,y:364.459565310889,vx:-8.72098344355839e-8,vy:2.76352449074515e-7};
_root.replayDataSlots[3] = new Array();
_root.replayDataSlots[3][0] = {x:233.728252230275,y:305.315505136142,vx:1.03267099835645,vy:5.40254867960916};
_root.replayDataSlots[3][1] = {x:181.309250796516,y:498.750719159373,vx:-3.23044024335169e-37,vy:3.66733070164618e-37};
_root.replayDataSlots[3][2] = {x:440.923819804678,y:343.919409689538,vx:-2.18443160756074e-14,vy:-2.67926083433765e-13};
_root.replayDataSlots[3][3] = {x:101.718939050347,y:124.881196008626,vx:-2.15480171722322e-20,vy:-1.05613771329653e-20};
_root.replayDataSlots[3][4] = {x:322.386215612274,y:59.8600266769327,vx:-5.70923887703587e-26,vy:-3.84657898940948e-27};
_root.replayDataSlots[3][5] = {x:315.436644354803,y:315.445593484631,vx:0.0000445097432973508,vy:-0.0000273611142484804};
_root.replayDataSlots[3][6] = {x:467.611976404249,y:55.1317718260599,vx:-0.0336334980630561,vy:0.0492420233503286};
_root.replayDataSlots[3][7] = {x:477.159828369034,y:364.459568988621,vx:-1.11630407498509e-26,vy:3.53736900236696e-26};
_root.replayDataSlots[4] = new Array();
_root.replayDataSlots[4][0] = {x:416.113101738138,y:308.948209680405,vx:15.0174081993993,vy:-6.83708710913236};
_root.replayDataSlots[4][1] = {x:181.309250796516,y:498.750719159373,vx:-1.51161133026735e-27,vy:1.71604432301587e-27};
_root.replayDataSlots[4][2] = {x:440.925199940032,y:343.936337400106,vx:-0.000102215528517469,vy:-0.00125369941210376};
_root.replayDataSlots[4][3] = {x:101.718939051708,y:124.881196009293,vx:-1.00829064921959e-10,vy:-4.94195717449737e-11};
_root.replayDataSlots[4][4] = {x:322.386215612274,y:59.8600266769327,vx:-2.67150899679735e-16,vy:-1.79991949862751e-17};
_root.replayDataSlots[4][5] = {x:287.83123937406,y:304.066350199625,vx:8.24096028754935e-15,vy:-1.29400319907029e-14};
_root.replayDataSlots[4][6] = {x:318.32650278171,y:349.141322089796,vx:-0.067525605653441,vy:0.0224599098140375};
_root.replayDataSlots[4][7] = {x:477.159828369034,y:364.459568988621,vx:-5.22349203407743e-17,vy:1.65523168995895e-16};